
<h1>Buscar libro	</h1>
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="1120" border="0" align="left">
      <tr>
        <td width="160" align="center">Título</td>
        <td align="center" width="160">Editorial &nbsp;&nbsp;</td>
        <td align="center" width="160">Idioma &nbsp;&nbsp;</td>
        <td align="center" width="160">Institucion &nbsp;&nbsp;</td> 
        <td align="center" width="160">Año edición &nbsp;&nbsp;</td>
        <td align="center" width="160">Autores &nbsp;&nbsp;</td>
        <td align="center" width="160">Carreras &nbsp;&nbsp;</td>
      </tr>


        <tr>
        <td width="160" align="center"><span id="sprytextfield1">
        <input type="text" name="txtTitulo" id="txtTitulo" />
        <span class="textfieldRequiredMsg">Se necesita un valor.</span></span></td>
        <td align="center" width="160"><label for="ddlEditorial"></label>
        <select name="ddlEditorial" id="ddlEditorial">
        <option value=""></option>
        <?php foreach ($editoriales_query as $key) {
          if($key['estado'] == 1)
            echo '<option value="'.$key['idEditorial'].'">'.$key['descripcion'].'</option>';
        }  ?>
        </select></td>
        <td align="center" width="160"><label for="ddlIdioma"></label>
        <select name="ddlIdioma" id="ddlIdioma">
            <option value=""></option>
            <?php 
                foreach ($idiomas_query as $key) {
                  if($key['estado'] == 1)
                    echo '<option value="'.$key['idIdioma'].'">'.$key['descripcion'].'</option>';
                }
            ?>
        </select></td>
        <td align="center" width="160"><label for="ddlInstitucion"></label>
        <select name="ddlInstitucion" id="ddlInstitucion">
            <option value=""></option>
            <?php 
                 foreach ($instituciones_query as $key) {
                  if($key['estado'] == 1)
                     echo '<option value="'.$key['idInstitucion'].'">'.$key['descripcion'].'</option>';
                 }
            ?>
        </select></td>
        <td align="center" width="160"><select name="ddlAño" id="ddlAño">
            <option value=""></option>
            <?php 
                foreach ($catalogo_query as $key) {
                    echo '<option value="'.$key['idCatalogo'].'">'.$key['anioEdicion'].'</option>';
                }
           ?>
        </select></td>
        <td align="center" width="160"><label for="ddlAutores"></label>
          <select name="ddlAutores" id="ddlAutores">
            <option value=""></option>
            <?php 
                foreach ($autores_query as $key) {
                  if($key['estado'] == 1)
                    echo '<option value="'.$key['idAutor'].'">'.$key['nombre'].'-'.$key['apellido'].'</option>';
                }
            ?>
        </select></td>
        <td align="center" width="160"><label for="ddlCarreras"></label>
          <select name="ddlCarreras" id="ddlCarreras">
            <option value=""></option>
            <?php 
                    foreach ($carreras_query as $key) {
                      if($key['estado'] == 1)
                         echo '<option value="'.$key['idCarrera'].'">'.$key['descripcion'].'</option>';
                    }
             ?>
          </select></td>
        <td align="center" width="160"><input type="submit" name="btnBuscar" id="btnBuscar" value="Buscar" /></td>
        <td><span id="spanEspera"></span></td>
      </tr>
     
    </table>

          <!--<div style="background-color:#EEE; width:305px; height:150px; overflow:scroll">-->
            <div style="background-color:#EEE; width:1120px; height:250px; overflow:scroll">
          <span id="spanBuscador"></span>
          </div>  
      
</form>

